﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.sys.feedback.List" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>意见反馈</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/sys.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/flora.datepick.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/sys.js"></script>
  <script type="text/javascript" src="/js/ajax.js"></script>
  <script type="text/javascript" src="/js/CheckBox.js"></script>
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick-zh-CN.js"></script>
  <script type="text/javascript">
    SetCheckBoxProperty("SltAllbtn", "p_chkb");
    $(document).ready(
      function() {
        $("#FromDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
        $("#ToDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
      }
    );
  </script>
</head>
<body>
  <form id="form1" method="post" action="?act=s">
    <div class="m_top"></div>
    <div class="block" style="height:100px;">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;意见反馈管理</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">标题：</div>
        <div class="fl"><input type="text" id="TitleTxt" name="TitleTxt" value="<%=title %>" style="width:250px;" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;用户名：</div>
        <div class="fl"><input type="text" id="UserNameTxt" name="UserNameTxt" value="<%=username %>" style="width:150px;" /></div>
      </div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">开始时间：</div>
        <div class="fl"><input id="FromDateTxt" name="FromDateTxt" value="<%=fromdate %>" />&nbsp;至&nbsp;<input id="ToDateTxt" name="ToDateTxt" value="<%=todate %>" /></div>
        <div class="fl">&nbsp;&nbsp;<input type="image" style="width:54px; height:23px;" src="/images/btn/search.gif" /></div>
      </div>
    </div>
    
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;搜索结果</div>
      </div>
      <div class="spe_line_2"></div>
      
      <% if (feedBackList != null && feedBackList.Count > 0) { %>
    
      <div id="datatable">
        <div class="data_rows" style="font-weight:bolder;">
          <div class="d_r_f_cb"><input type="checkbox" id="SltAllbtn" onclick="SelectAllCheckBox();" class="chkb" /></div>
          <div class="d_r_f_t">标题</div>
          <div class="d_r_f_p">用户名</div>
          <div class="d_r_f_tm">提交时间</div>
          <div class="d_r_f_o">操作</div>
        </div>
        
         <% foreach (FeedBackModel model in feedBackList) { %>
        <div class="data_rows">
          <div class="d_r_f_cb"><input type="checkbox" id="chkb_<%=model.ID %>" name="p_chkb" value="<%=model.ID %>" class="chkb" onclick="SelectThis();" /></div>
          <div class="d_r_f_t"><%=model.Title%></div>
          <div class="d_r_f_p"><%=model.UserName%></div>
          <div class="d_r_f_tm"><%=model.AddDate.ToString("yyyy.MM.dd")%></div>
          <div class="d_r_f_o"><a href="/sys/feedback/View.aspx?id=<%=model.ID %>">查看</a></div>
        </div>
      
         <% } %>
        
      </div>
      
      <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
        <% if (authority == E.Enum.EnumTeacherAuthority.Admin) { %>
      <div style="margin:8px 0 0 0;">
        <input type="hidden" id="arrv" name="arrv" />
        <img alt="" src="/images/btn/del_s.gif" class="cursor" onclick="DeleteSysSelection('feedback');" />
      </div>
        <% } %>
      <%} %>
    </div>
  </form>
</body>
</html>
